if [ $# -ne 1 ]; then
    make distclean
    rm .lib.pro
    rm -rf build
    rm myapp
    echo "clean all finish"
fi

if [[ $1 == build ]]; then
    make distclean
    echo "make distclean finish"
else
    echo "$1 is invalid"
fi